/**
 * 文件名：****.java
 * 版权：Copyright Lightkit All Rights Reserved.
 * 描述：*****
 */
package com.lightkits.wms.domain.allot;

import com.lightkits.framework.common.model.CheckResult;
import com.lightkits.wms.dto.allot.model.PickHeadDto;
import com.lightkits.wms.dto.allot.model.PickLineDto;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * UseTagParamsService
 *
 * @author jing.wei@hand-china.com
 * Created on 2019/5/23 20:39
 */
@Component
public interface UseAllotParamsService {
    /**
     * 调拨接收
     *
     * @param headDto  调拨单头
     * @param lineDtos 调拨单行
     * @return Long
     **/
    CheckResult<Long> allotSend(PickHeadDto headDto, List<PickLineDto> lineDtos);

    /**
     * 参数校验
     *
     * @param lineDtos 领料单行参数
     * @param orgId    来源组织
     * @param toOrgId  目标组织
     */
    void checkLines(List<PickLineDto> lineDtos, String orgId, String toOrgId);
}
